//
//  Magotan.m
//  Chapter3
//
//  Created by 郭家正 on 2019/1/10.
//  Copyright © 2019 TM. All rights reserved.
//

#import "Magotan.h"

@implementation Magotan

-(id)initWithName:(NSString *)name
            color:(NSString *)color
           engine:(NSString *)engine
            price:(CGFloat)price
              tel:(NSString *)tel {
    self = [super initWithName:name color:color engine:engine price:price];
    if (self) {
        self.magotanTel = tel;
    }
    return self;
}

-(void)magotanSayHello {
    NSLog(@"迈腾问候您好");
}

-(NSString *)description {
    return [[NSString alloc]initWithFormat:@"Magotan[name:%@]",self.name];
}

@end
